From 7d5e46ea05d3956241603205f2fbcc46f222a309 Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Thu, 10 Nov 2011 19:49:32 +0000 Subject: [PATCH] * fix as per comment on CR r102625#c25856 --- includes/api/ApiQueryBlocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 51b97506df..d5e2e6475b 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -130,8 +130,8 @@ class ApiQueryBlocks extends ApiQueryBase { $this->addWhereIf( 'ipb_user != 0', isset( $show['account'] ) ); $this->addWhereIf( 'ipb_user != 0 OR ipb_range_end > ipb_range_start', isset( $show['!ip'] ) ); $this->addWhereIf( 'ipb_user = 0 AND ipb_range_end = ipb_range_start', isset( $show['ip'] ) ); - $this->addWhereIf( "ipb_expiry = '".$db->getInfinity()."'", isset( $show['!temp'] ) ); - $this->addWhereIf( "ipb_expiry != '".$db->getInfinity()."'", isset( $show['temp'] ) ); + $this->addWhereIf( 'ipb_expiry = '.$db->addQuotes($db->getInfinity(), isset( $show['!temp'] ) ); + $this->addWhereIf( 'ipb_expiry != '.$db->addQuotes($db->getInfinity(), isset( $show['temp'] ) ); $this->addWhereIf( "ipb_range_end = ipb_range_start", isset( $show['!range'] ) ); $this->addWhereIf( "ipb_range_end > ipb_range_start", isset( $show['range'] ) ); } -- 2.20.1